class ProductCollection < ActiveRecord::Base
  belongs_to :resource, :polymorphic => true 
  belongs_to :warehouse
  belongs_to :product
  scope :paginate, ->(start,limit) { offset(start.to_i).limit(limit.to_i).order("id DESC")}
end
